<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="options.css" />
</head>

<body>
    <form>
        <p>Copy as pure text - Format: </p>
        <div class="formatdiv">
            <span>delete</span><br />
            <input type="checkbox" id="inpPuretextFormatDelAroundSpace" /><label for="inpPuretextFormatDelAroundSpace"  data-i18n="puretextFormatDelAroundSpace">Delete context around space.(trim)</label><br />
            <input type="checkbox" id="inpPuretextFormatDelInvisibleSpace" /><label for="inpPuretextFormatDelInvisibleSpace" data-i18n="puretextFormatDelInvisibleSpace">Delete invisible space.</label><br />
        </div>
        <div class="formatdiv">
            <span>convert</span><br />
            <input type="checkbox" id="inpPuretextFormatConvertQuotation" /><label for="inpPuretextFormatConvertQuotation" data-i18n="puretextFormatConvertQuotation">Convert all type quotation to normal quotation.</label><br />
            <input type="checkbox" id="inpPuretextFormatConvertApostrophe" /><label for="inpPuretextFormatConvertApostrophe" data-i18n="puretextFormatConvertApostrophe">Convert all type apostrophe to normal apostrophe.</label><br />
            <input type="checkbox" id="inpPuretextFormatConvertDash" /><label for="inpPuretextFormatConvertDash" data-i18n="puretextFormatConvertDash">Convert all type dash to normal dash.</label><br />
            <input type="checkbox" id="inpPuretextFormatConvertSpace" /><label for="inpPuretextFormatConvertSpace" data-i18n="puretextFormatConvertSpace">Convert fullwidth space to normal space</label><br />
        </div>
        <div class="formatdiv">
            <span>merge</span><br />
            <input type="checkbox" id="inpPuretextFormatMergeNewline" /><label for="inpPuretextFormatMergeNewline" data-i18n="puretextFormatMergeNewline">Merge newline.</label><br />
            <input type="checkbox" id="inpPuretextFormatMergeSpace" /><label for="inpPuretextFormatMergeSpace" data-i18n="puretextFormatMergeSpace">Merge space.</label><br />
            <input type="checkbox" id="inpPuretextFormatMergeFullwidthSpace" /><label for="inpPuretextFormatMergeFullwidthSpace" data-i18n="puretextFormatMergeFullwidthSpace">Merge fullwidth space.</label><br />
            <input type="checkbox" id="inpPuretextFormatMergeTabulation" /><label for="inpPuretextFormatMergeTabulation" data-i18n="puretextFormatMergeTabulation">Merge tabulation.</label><br />
            <input type="checkbox" id="inpPuretextFormatMergeAllTypeSpace" /><label for="inpPuretextFormatMergeAllTypeSpace" data-i18n="puretextFormatMergeAllTypeSpace">Merge all type space to one space.</label><br />
        </div>
        <hr />
        <p>Copy as HTML text - Format: </p>
        <input type="checkbox" id="inpHtmltextFormatWithoutTag" /><label for="inpHtmltextFormatWithoutTag" data-i18n="htmltextFormatWithoutTag">Copy without HTML Tag.</label><br />
        <hr />
        <p>Copy Link info - Format:</p>
        <label> [[name]] - Name text, [[url]] - URL text
                <div class="tipbox urlpart"><span>(?)</span></div>
                , [[n]] - New line, [[t]] - Tabulation </label><br />
        <label data-i18n="linkCustomFormat">Link custom format: </label>
        <div id="divLinkCustomFormat"></div>
        <input type="button" id="inpLinkCustomFormat" class="btnAdd" value="+" data-listid="divLinkCustomFormat" data-name="Custom" data-value="Name:[[name]][[n]]Url:[[url]]" /><br />
        <hr />
        <p>Copy Tab info - Format:</p>
        <label> [[name]] - Name text, [[url]] - URL text
                <div class="tipbox urlpart"><span>(?)</span></div>
                , [[n]] - New line, [[t]] - Tabulation </label><br />
        <label data-i18n="tabCustomFormat">Tab custom format: </label>
        <div id="divTabCustomFormat"></div>
        <input type="button" id="inpTabCustomFormat" class="btnAdd" value="+" data-listid="divTabCustomFormat" data-name="Custom" data-value="Name:[[name]][[n]]Url:[[url]]" /><br /><br />
        <label> [[index]] - Index, [[name]] - Name text, [[url]] - URL text
                <div class="tipbox urlpart"><span>(?)</span></div>
                , [[n]] - New line, [[t]] - Tabulation</label><br />
        <label> Not for break line automate, you should add [[n]] at format end.</label><br />
        <label data-i18n="tabsinfoCustomFormat">All tabs info custom format: </label>
        <div id="divTabsinfoCustomFormat"></div>
        <input type="button" id="inpTabsinfoCustomFormat" class="btnAdd" value="+" data-listid="divTabsinfoCustomFormat" data-name="Custom" data-value="[[index]].[[t]][[url]][[t]]([[name]])[[n]]" /><br />
        <hr />
        <p>Analyze URLs: </p>
        <input type="checkbox" id="inpFixUrlQuotEnd" /><label for="inpFixUrlQuotEnd" data-i18n="fixUrlQuotEnd">fix URLs end with quotation</label><br /><br />
        <label> [[index]] - Index, [[url]] - URL text
                <div class="tipbox urlpart"><span>(?)</span></div>
                , [[n]] - New line, [[t]] - Tabulation</label><br />
        <label> Not for break line automate, you should add [[n]] at format end.</label><br />
        <label data-i18n="urlsCustomFormat">Copy URLs custom format: </label>
        <div id="divUrlsCustomFormat"></div>
        <input type="button" id="inpUrlsCustomFormat" class="btnAdd" value="+" data-listid="divUrlsCustomFormat" data-name="Custom" data-value="[[url]][[n]]" /><br /><br />
        <label> [[index]] - Index, [[url]] - URL text
                <div class="tipbox urlpart"><span>(?)</span></div>
                , [[n]] - New line, [[t]] - Tabulation</label><br />
        <label> Not for break line automate, you should add [[n]] at format end.</label><br />
        <label data-i18n="imageUrlsCustomFormat">Copy Image URLs custom format: </label>        
        <div id="divImageUrlsCustomFormat"></div>
        <input type="button" id="inpImageUrlsCustomFormat" class="btnAdd" value="+" data-listid="divImageUrlsCustomFormat" data-name="Custom" data-value="[[url]][[n]]" /><br /><br />
        <label data-i18n="maxTabsLimit">Max tabs limit at once open: </label>
        <input type="number" id="inpOpenPagesLimit" min="1" max="999" value="10" /><br /><br />
        <input type="checkbox" id="inpOpenOneImageDirectly" /><label for="inpOpenOneImageDirectly" data-i18n="openOneImageDirectly">Open a single Image link directly</label><br /><br />
        <input type="checkbox" id="inpBlobUrlToLocal" /><label for="inpBlobUrlToLocal" data-i18n="blobUrlToLocal">Blob URL transfer to local URL</label><br />
        <hr />
        <p>Analyze Objects: </p>
        <label> [[index]] - Index, [[name]] - innerHTML text, [[url]] - URL text
            <div class="tipbox urlpart"><span>(?)</span></div>
            , [[n]] - New line, [[t]] - Tabulation</label><br />
        <label> Not for break line automate, you should add [[n]] at format end.</label><br />
        <label data-i18n="aObjectsCustomFormat">Copy &lt;a&gt; objects custom format: </label>
        <div id="divAObjectsCustomFormat"></div>
        <input type="button" id="inpAObjectsCustomFormat" class="btnAdd" value="+" data-listid="divAObjectsCustomFormat" data-name="Custom" data-value="[[url]][[n]]" /><br /><br />
        <label> [[index]] - Index, [[name]] - Alt attribute, [[url]] - URL text
            <div class="tipbox urlpart"><span>(?)</span></div>
            , [[n]] - New line, [[t]] - Tabulation</label><br />
        <label> Not for break line automate, you should add [[n]] at format end.</label><br />
        <label data-i18n="imgObjectsCustomFormat">Copy &lt;img&gt; objects custom format: </label>
        <div id="divImgObjectsCustomFormat"></div>        
        <input type="button" id="inpImgObjectsCustomFormat" class="btnAdd" value="+" data-listid="divImgObjectsCustomFormat" data-name="Custom" data-value="[[url]][[n]]" /><br /><br />
        <hr />
        <p>Toolbar button:</p>
        <label data-i18n="toolbarButtonAction">Toolbar button action: </label>
        <select id="selToolbarButtonAction">
            <option value="3" data-i18n="copySelectedPuretext">Copy selected pure text</option>
            <option value="4" data-i18n="copySelectedHtmltext">Copy selected HTML text</option>
            <option value="5" data-i18n="copySelectedUrls">Copy selected URLs</option>
            <option value="6" data-i18n="openSelectedUrls">Open selected URLs</option>
            <option value="11" data-i18n="copySelectedImageUrls">Copy selected image urls</option>
            <option value="12" data-i18n="showSelectedImages">Show selected images</option>
        </select>
        <select id="selToolbarButtonActionIdx"></select><br />
        <hr />
        <p>Keybord shortcut: F8</p>
        <label data-i18n="keyboardShortcutAction">keyboard shortcut action: </label>
        <select id="selKeyboardShortcutAction">
            <option value="3" data-i18n="copySelectedPuretext">Copy selected pure text</option>
            <option value="4" data-i18n="copySelectedHtmltext">Copy selected HTML text</option>
            <option value="5" data-i18n="copySelectedUrls">Copy selected URLs</option>
            <option value="6" data-i18n="openSelectedUrls">Open selected URLs</option>
            <option value="11" data-i18n="copySelectedImageUrls">Copy selected image urls</option>
            <option value="12" data-i18n="showSelectedImages">Show selected images</option>
        </select>
        <select id="selKeyboardShortcutActionIdx"></select><br />
        <hr />
        <p>Interface: </p>
        <label data-i18n="language">Language: </label>
        <select id="selInterfaceLanguage">
            <option value="">---</option>
            <!--<option value="de" disabled="disabled">de, Deutsch</option>-->
            <option value="en">en-US, English (USA)</option>
            <option value="en_GB">en-GB, English (Great Britain)</option>
            <!--<option value="es" disabled="disabled">es, Español</option>-->
            <!--<option value="fr" disabled="disabled">fr, Français</option>-->
            <!--<option value="it" disabled="disabled">it, Italiano</option>-->
            <option value="ja">ja, 日本語</option>
            <option value="ru">ru, Русский</option>
            <option value="zh_CN">zh-CN, 中文 (简体)</option>
            <option value="zh_TW">zh-TW, 中文 (台灣)</option>
        </select>
        <div class="tipbox iplang"><span data-i18n="improveTrans">Improve translation</span></div>
        <br />
        <hr />
        <input type="button" id="inpResetSettings" data-i18n="resetSettings" value="Default" />
        <input type="button" id="inpSaveSettings" data-i18n="saveSettings" value="Save settings" />        
    </form>
    <label id="lblSaved" data-i18n="saveOk">Data saved.</label>
    <script src="common.js"></script>
    <script src="options.js"></script>
    
    <div class="tiptxt" data-boxcss="urlpart">
        URL part text format: <br />
        <hr />
        [[url]] - URL text<br />
        [[host]] - URL host text<br />
        [[fullhost]] - URL full host text<br />
        [[fullpath]] - URL full path text<br />
        <hr />
        [[potocol]] - URL potocol text<br />
        [[hostname]] - URL hostname text<br />
        [[port]] - URL port text <br />
        [[pathname]] - URL pathname text<br />
        [[search]] - URL search text<br />
        [[hash]] - URL hash text<br />
    </div>
    <div class="tiptxt" data-boxcss="iplang">
        Improve translation: <br />
        <hr>
        Fork the repository from <a href="https://github.com/Yukisama/TextLinkyTool">Github</a> , <br />
        apply your changes and create a pull request. <br />
    </div>
</body>
</html>